import allure
import pytest

from page.music163Page import Music163Page
from utils.readYamlFile import ReadYamlFile


@allure.feature('主流程回归')
class TestCase003:
    # 获取测试数据
    paramName, paramValue = ReadYamlFile().read('case_003.yaml')

    @allure.title('case_003_网易云音乐')
    @pytest.mark.parametrize(paramName, paramValue, ids=['case_003'])
    def test_case_003(self, username, password, create_page):
        # 初始化page
        page = create_page
        with allure.step('步骤1：登录'):
            Music163Page(page).login(username, password)
